package com.yidu.sanrenxing.login.service.impl;

import com.yidu.sanrenxing.login.dao.UsersMapper;
import com.yidu.sanrenxing.login.domain.Users;
import com.yidu.sanrenxing.login.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UsersServiceImpl implements UsersService {

    @Autowired
    public UsersMapper usersMapper;

    @Override
    public Users selectByPhonePas(Users users) {
        return usersMapper.selectByPhonePas(users);
    }

    @Override
    public int insert(Users record) {
        return usersMapper.insert(record);
    }

    @Override
    public Users selectUserMsgByAccount(String uphonenum) {
        return usersMapper.selectUserMsgByAccount(uphonenum);
    }
}
